<template>
  <div class="my">
      <form action=""><span></span><van-icon name="setting-o" /></form>
      <div id="my">
            <van-image width="100" height="100" src="https://img.yzcdn.cn/vant/cat.jpeg" />
            <div class="name">
                <h2>devin</h2>
                <span>退出登录></span>
            </div>
      </div>
      <div class="price">
          <p>
              <span>--</span>
              <span>充值金额</span>
          </p>
          |
          <p>
              <span>0</span>
              <span>可用积分</span>
          </p>
          |
          <p>
              <b>正常</b>
              <span>状态</span>
          </p>
      </div>
      <div class="dangan">
          <h3>健康档案</h3>
          <div class="xinxi">
              <div class="left">
                  <b>--健康</b>
                  <span>女 25岁</span>
              </div>
              <span></span>
              <button>查看文档</button>
          </div>
      </div>
      <div class="gongju">
          <h3>工具与服务</h3>
          <van-grid>
            <van-grid-item icon="setting-o" text="修改密码" />
            <van-grid-item icon="records" text="地址管理" />
            <van-grid-item icon="bulb-o" text="用药提醒" />
            <van-grid-item icon="after-sale" text="充值记录" />
            <van-grid-item icon="underway-o" text="病历" />
          </van-grid>
      </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.my{
    width: 100%;
    height: 100%;
    form{
        width: 100%;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .van-icon{
            font-size: 25px;
        }
    }
    #my{
        width: 100%;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        .van-image{
            border-radius: 50%;
            margin-right: 10px;
            overflow: hidden;
        }
        .name{
            height: 80px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            span{
                font-size: 10px;
                color: #ccc;
                margin-top: 10px;
            }
        }
    }
    .price{
        width: 100%;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        color: #fff;
        background: rgb(112, 205, 248);
        border-radius: 5px;
        margin: 20px 0 15px 0;
        p{
            width: 30%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-around;
        }
    }
    .dangan{
        width: 100%;
        height: 150px;
        border: 1px solid #ccc;
        border-radius: 10px;
        h3{
            margin: 0 20px;
            padding: 10px;
            border-bottom: 1px solid #ccc;
        }
        .xinxi{
            width: 100%;
            margin: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            .left{
                display: flex;
                flex-direction: column;
                b{
                    margin: 20px 0;
                    color: rgb(13, 173, 13);
                }
                span{
                    font-size: 10px;
                    color: #666;
                }
            }
            button{
                width: 100px;
                height: 40px;
                color: #fff;
                background: rgb(72, 179, 241);
                border-radius: 20px;
                border: none;
            }
        }
    }
    .gongju{
        width: 100%;
        height: 250px;
        margin-top: 15px;
        border: 1px solid #ccc;
        border-radius: 10px;
        h3{
            margin: 20px;
        }
    }
}
</style>